package com.mep.auth.feign;

import com.mep.auth.model.SysDict;
import com.mep.common.http.HttpResult;
import com.mep.common.page.PageRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "story-auth/dict", path = "/")
public interface IFeignSysDictApi {
//    @ApiOperation(value="01.保存dict",notes="问题点:保存dict")
//    @ApiOperationSupport(order = 1, author = "lyl")
    @PostMapping(value="/save")
    HttpResult save(@RequestBody SysDict record);

//    @ApiOperation(value="02.删除dict",notes="问题点:删除dict")
//    @ApiOperationSupport(order = 2, author = "lyl")
    @PostMapping(value="/delete")
    HttpResult delete(@RequestBody List<SysDict> records);

//    @ApiOperation(value="03.dict分页数据",notes="问题点:dict分页数据")
//    @ApiOperationSupport(order = 3, author = "lyl")
    @PostMapping(value="/findPage")
    HttpResult findPage(@RequestBody PageRequest pageRequest);

//    @ApiOperation(value="04.通过label查询dict",notes="问题点:通过label查询dict")
//    @ApiOperationSupport(order = 4, author = "lyl")
    @PostMapping(value="/findByLable")
    HttpResult findByLable(@RequestParam String lable);
}
